package handlers

import (
	"restapi/services"

	"net/http"

	"github.com/gin-gonic/gin"
)

type StudyHandler struct {
	studyService services.StudyService
}

func NewStudyHanler(studyService services.StudyService) *StudyHandler {
	return &StudyHandler{studyService: studyService}
}

func (h *StudyHandler) Chapter01(context *gin.Context) {
	result := h.studyService.Chapter01("chapter-01")
	context.JSON(http.StatusOK, result)
}
